/**
 * @author   zhangyp
 * @created  2013-8-12 下午3:21:28
 * @email    zviolet@163.com
 * TODO
 */
package com.bible.fire.bean.system;

public class AppConfig {
	
	private String serverIp;	
	private int serverPort;
	private String basePath;
	private String versionPath;
	
	public AppConfig(String serverIp, int serverPort, String basePath, String versionPath) {
		super();
		this.serverIp = serverIp;
		this.serverPort = serverPort;
		this.basePath = basePath;
		this.versionPath = versionPath;
	}
	
	public String getVersionUrl(){		
		return getServerUrl() + "/" + versionPath;
	}
	
	public String getServerUrl(){
		return "http://" + serverIp + ":" + serverPort + "/" + basePath;
	}
}
